<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></meta>

<style type="text/css">
    *{
        margin:0px;
        padding:0px;
    }
    .maxbox{
        border:1px dashed black;
        height: 95mm;
        width: 80mm;
        margin:100px auto auto auto;
    }
    .upbox{
        height:72mm;
        width: 80mm;
    }

    .checked_remark{
        height: 7mm;
        width: 35mm;
        margin:1mm auto;
    }
    .info{
        width: 65mm;
        margin:auto;
    }
    .txt1{
        width: 158px;
        border:none;
        border-bottom:1px solid black;
    }
    .info tr td{
        line-height: 6mm;
        font-size:14px;
    }
    .info_td{
        float: right;
    }
    .downbox{
        height: 15mm;
        width: 80mm;
        margin:3mm auto;
    }
    .imgbox{
        width: 50mm;
        height: 15mm;
        margin:auto;
        font-size:12px;
    }
    .checked_td{
        width:100px;
        height: 24px;
        text-align: right;
    }
    table tr td input{ margin-left:5px; padding-left:3px;}
    .asd{float:left;}
    .sd{margin-right:15px;}
    .sg{margin-right:8px;}
    .sr{ margin-right:28px;}
    table tr td{ vertical-align:top; }
    .asdf{ border-bottom:1px solid #333; margin-left:2px;}
</style>
<body>
<div>
    <button onclick="print_prepackage(this)" class="btn btn-info">打印</button>
</div>
<div class="maxbox">
    <div class="upbox">
        <div class="checked_remark"><center><h3>良品已检标识</h3></center></div>
        <div class="info">
            <table cellpadding="0" cellspacing="0" >
                <tr >
                    <td style="width:75px;"> 特采部门:</td>
                    <td style="width:176px;" class="asdf"></td>
                </tr>
                <tr>
                    <td><span class="asd sd">S</span><span class="asd sd">K</span><span class="asd">U</span><span class="asd"> :</span></td>
                    <td class="asdf"><?php echo $data['sku']?></td>

                </tr>
                <tr>
                    <td>采购名称:</td>
                    <td class="asdf"><?php echo $data['sku_name']; ?></td>
                </tr>
                <tr>
                    <td>质检数量:</td>
                    <td class="asdf"><?php echo $data['check_quantity']; ?></td>
                </tr>
                <tr>
                    <td>合格数量:</td>
                    <td class="asdf"><?php echo $data['qualified_quantity']; ?></td>
                </tr>
                <tr>
                    <td><span class="asd sg">合</span><span class="asd sg">格</span><span class="asd">率</span>:</td>
                    <td class="asdf"><?php echo $data['quality_count']; ?></td>
                </tr>

                <tr>
                    <td><span class="asd sg">质</span><span class="asd sg">检</span><span class="asd">员</span>:</td>
                    <td class="asdf"></td>
                </tr>
                <tr>
                    <td>质检日期:</td>
                    <td class="asdf"><?php echo $data['invoice_date']; ?></td>
                </tr>
                <!--<tr>-->
                    <!--<td><span class="asd sr">储</span><span class="asd">位</span>:</td>-->
                    <!--<td class="asdf"><?php echo $data['storage_position']; ?></td>-->
                <!--</tr>-->
                <tr>
                    <td>抽检比例:</td>
                    <td class="asdf"></td>
                </tr>
            </table>
        </div>
    </div>
    <div class="downbox">
        <div class="imgbox"><center><?php echo $data['sku']; ?></center>
            <img style="height:10mm;width:43mm;" src="__PUBLIC__/chanage_code/barcode/html/image.php?code=code128&o=2&t=15&r=1.5&text=<?php echo $data['sku'].':'.$data['cid'].':A' ?>&f1=-1&f2=8&a1=&a2=B&a3=" style="margin-top:10px;" />
            <!--<center><?php echo $data['storage_position']; ?></center></div>-->
    </div>
</div>
</body>
</html>
<style>
    .btn {
        display: inline-block;
        padding: 5px 12px;
        margin-bottom: 0;
        font-family: "Helvetica Neue", Helvetica, Tahoma, Arial, 'Microsoft Yahei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
        font-size: 13px;
        font-weight: normal;
        line-height: 1.53846154;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -o-user-select: none;
        user-select: none;
        background-image: none;
        border: 1px solid transparent;
        border-radius: 4px;
        -webkit-transition: all .4s cubic-bezier(.175, .885, .32, 1);
        transition: all .4s cubic-bezier(.175, .885, .32, 1);
    }
    .btn:focus {
        outline: thin dotted #333;
        outline: 5px auto -webkit-focus-ring-color;
        outline-offset: -2px;
    }
    .btn:hover,
    .btn:focus {
        color: #353535;
        text-decoration: none;
    }
    .btn:active,
    .btn.active {
        background-image: none;
        outline: none;
        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125)
    }
    .btn-info {
        color: #fff;
        text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
        background-color: #03b8cf;
        border-color: #03a2b6;
    }
</style>
<script>
    function print_prepackage(thisObj)
    {
        thisObj.parentNode.style.display='none';
        window.print();
        thisObj.parentNode.style.display='block';
    }
</script>